package com.earl.eatbao.domain.sercurity;

import java.io.Serializable;

import javax.persistence.Entity;

import org.hibernate.validator.constraints.NotEmpty;

import com.earl.eatbao.commons.domain.AbstractAuditingEntity;

/**
 * @author Administrator
 * @version 1.0
 * @created 22-十一月-2016 14:51:18
 */
@Entity
public class User extends AbstractAuditingEntity<Long> implements Serializable {

	/**
	 * 登录账号
	 */
	@NotEmpty
	private String account;
	/**
	 * 是否禁用 冻结用户
	 */
	private boolean enable;
	
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 加密盐
	 */
	private String salt;

	/**
	 * 用户头像
	 */
	private String userImage;

	public String getAccount(){
		return account;
	}

	public String getPassword(){
		return password;
	}

	public String getSalt(){
		return salt;
	}

	public boolean isEnable(){
		return enable;
	}

	/**
	 * 
	 * @param account    account
	 */
	public void setAccount(String account){
		this.account = account;
	}

	/**
	 * 
	 * @param enable    enable
	 */
	public void setEnable(boolean enable){
		this.enable = enable;
	}

	/**
	 * 
	 * @param password    password
	 */
	public void setPassword(String password){
		this.password = password;
	}

	/**
	 * 
	 * @param salt    salt
	 */
	public void setSalt(String salt){
		this.salt = salt;
	}

	/**
	 * Getter for property 'userImage'.
	 *
	 * @return Value for property 'userImage'.
	 */
	public String getUserImage() {
		return userImage;
	}

	/**
	 * Setter for property 'userImage'.
	 *
	 * @param userImage Value to set for property 'userImage'.
	 */
	public void setUserImage(String userImage) {
		this.userImage = userImage;
	}
}